<script>

import Video from '@/components/video.vue'
export default {
  data() {
    return {
      videoOpts: {
        url: '/static/QFZtby570E5iLyQKIK9bosz7EQ6z6rjXfIfdsw___16.mp4'
      }
    }
  },
  components: {
    Video,
  },
  mounted() {
    window.addEventListener('online', evt => {
      alert('xxx')
    }, false)
  }
}
</script>
<template lang="pug">
#app
  Video(:opts="videoOpts")
</template>
<style lang="less">
#app {
  margin: 0 auto;
  width: 800px;
}
</style>